﻿@model LeadMaster.Models.LoginModel

@{
    ViewBag.Title = "Log in";
}

<div class="spacer"></div>

@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) {
    @Html.ValidationSummary(true, "Log in was unsuccessful. Please correct the errors and try again.")

    <fieldset style="width: 400px">
        <legend>Log in Form</legend>
        <table style="width: 100%;">
            <tr>
                <td>
                    @Html.Label("User Name")
                </td>
                <td>
                    @Html.TextBoxFor(m => m.UserName, new { @class="normaltextbox"})
                </td>
            </tr>
            <tr>
                <td>
                    @Html.LabelFor(m => m.Password)
                </td>
                <td>
                @Html.PasswordFor(m => m.Password, new { @class = "normaltextbox" })
                </td>
            </tr>
            <tr>
                <td>
                @Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })
                </td>
                <td>
                @Html.CheckBoxFor(m => m.RememberMe)                
                </td>
            </tr>
            <tr>
            <td>&nbsp;</td>
            <td><input type="submit" value="Log in" style="width:100px;"/></td>
            </tr>
        </table>
    </fieldset>
    <div class="spacer"></div>
    <p>
        @Html.ActionLink("Register", "Register") if you don't have an account.
    </p>
}
